#include <iostream>
#include <vector>

using namespace std;

int maxArea(vector<int>& height) {
    unsigned int n = height.size();
    if(n<=1){return 0;}
    int ras = 0;
    int left = 0;
    unsigned int right = n-1;
    while (left<right){
        int area = fmin(height[left], height[right])*(right-left);
        ras = fmax(ras, area);
        if(height[left]>=height[right]){
            right--;
        } else{
            left++;
        }
    }
    return ras;
}

int main() {

//   std::cout << "Hello, World!" << std::endl;
    vector<int> nums= {4,3,2,7,8,2,3,1};
    std::cout << "hello world" << std::endl;
    

    return 0;
}

